package java56_5;

public class Gdp {
	/**
	 * 静态分析； 调试
	 * 
	 * @param args
	 */
	public static void main(String[] args) {
		double c = 3.7, u = 14;
		int year = 2013;
		while (c < u) {
			c = c * (1 + 0.079);
			u = u * (1 + 0.019);
			year++;
		}
		System.out.println("到" + year + "年超过美国的gdp");
	}
}
